using System;
using Gadgeteer.Interfaces.Led;

namespace Gadgeteer.Interfaces.Fakes
{
    public class FakeToggleLed : IToggleLed
    {
        private bool ledIsOn;

        public FakeToggleLed()
        {
        }

        public void TurnOn()
        {
            ledIsOn = true;
        }

        public bool IsTurnedOn
        {
            get { return ledIsOn; }
        }

        public void TurnOff()
        {
            ledIsOn = false;
        }
    }
}
